package MyGO.service.impl;

import MyGO.Form.TrackForm;
import MyGO.dao.ITrackFormDao;
import MyGO.dao.impl.TrackFormImpl;
import MyGO.entity.Doctor;
import MyGO.service.IDoctorService;
import MyGO.service.ITrackFormService;

import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;

public class TrackFormServiceImpl implements ITrackFormService {
    private ITrackFormDao trackFormDao = new TrackFormImpl();

    @Override
    public List<TrackForm> selectAllTrackForm() {
        return trackFormDao.selectAllTrackForm();
    }

    @Override
    public List<TrackForm> selectTrackFormById(String ID) {
        return trackFormDao.selectTrackFormById(ID);
    }

    @Override
    public List<TrackForm> selectTrackFormByName(String name) {
        return trackFormDao.selectTrackFormByName(name);
    }

    @Override
    public List<TrackForm> selectTrackFormByStatusAndDoctorID(String status, String doctorID) {
        return trackFormDao.selectTrackFormByStatusAndDoctorID(status, doctorID);
    }

    @Override
    public List<TrackForm> selectTrackFormByStatus(String status) {
        return trackFormDao.selectTrackFormByStatus(status);
    }

    @Override
    public List<TrackForm> selectTrackFormByMedicine(String status) {
        return trackFormDao.selectTrackFormByMedicine(status);
    }

    @Override
    public void addTrackForm(TrackForm trackForm) {
        trackFormDao.addTrackForm(trackForm);
    }

}
